package com.hxzy.boot.service.impl;

import com.hxzy.boot.mapper.UserMapper;
import com.hxzy.boot.pojo.User;
import com.hxzy.boot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wzm
 * @create 2023-09-25 11:50
 * project_name:javaweb2308
 */
//业务逻辑实现
//@Component  //将当前类的对象交给IOC容器管理
//@Service(value = "uuimpl")



@Service
public class UserServiceImpl02 implements UserService {
    //创建mapper对象
    @Autowired //运行是从IOC中获取相关类型的对象并赋值
    private UserMapper userMapper;

    @Override
    public List<User> findAll() {
        return userMapper.selectByAll();
    }
}


